FROM node:18

WORKDIR /opt/application

COPY package.json ./
RUN npm install

COPY . .

RUN chmod +x /opt/application/run.sh

EXPOSE 8000

ENTRYPOINT ["/bin/sh", "/opt/application/run.sh"]